package A20180306;

public class Car {
	String name;
	double price,speed;
	
	Car(String name, double price) {
		this.name = name;
		this.price = price;
	}
	
	Car(String name, double price, double speed) {
		this.name = name;
		this.price = price;
		this.speed = speed;
	}
	
	void speedUp(int s) {
		this.speed = s;
	}
	
	void stop() {
		this.speed = 0.0;
	}
}
